package com.heima.model.common.dtos;

import com.heima.model.annotation.EnumValue;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
public class CommentLikeDTO {

    /**
     * 评论id
     */
    @NotNull(message = "评论id不能为空")
    private String commentId;

    /**
     * 0：点赞
     * 1：取消点赞
     */
    @EnumValue(shortValues = {0,1},message = "操作类型只能为0或者1")
    private Short operation;
}